﻿<!doctype html>
<html>
<head>
<meta charset="utf-8">

<title>canvas的变换</title>
<style>
body {background:black; text-align:center;}
#c1 {background:white;}
</style>
<script>
window.onload=function ()
{
	var oC=document.getElementById('c1');
	var gd=oC.getContext('2d');
	
	gd.strokeRect(100, 100, 200, 150);
	
	gd.rotate(30);
};
</script>
</head>

<body>
<canvas id="c1" width="800" height="600"></canvas>
</body>
</html>





